import hyRequest from "@/service";

// 获取轮播图数据
export function getBanners() {
	return hyRequest.get({
		url: "/banner",
	});
}
// 热门推荐
export function getRecommend(payload = 10) {
	return hyRequest.get({
		url: "/personalized",
		params: {
			limit: payload,
		},
	});
}
// 新碟上架
export function getNewAlbum(payload = 10) {
	return hyRequest.get({
		url: "/album/newest",
		params: {
			limit: payload,
		},
	});
}
